package com.hl.toolkit.server.tycoin.news.slaveentity;

import com.tycoin.common.entity.AbstractEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 资讯
 */
@Entity
@Table(name = "tycoin_news")
 public class TycoinNews extends AbstractEntity implements Serializable{

	private static final long serialVersionUID = 1L;
	
	@Column(name = "news_type")
	private int newsType;//资讯类型    1 热门资讯  2媒体报道      9外部新闻
	
	@Column(name = "news_img1")
	private String newsImg1;

	@Column(name = "news_img2")
	private String newsImg2;
	
	@Column(name = "news_img3")
	private String newsImg3;
 	
	@Column(name = "title")
	private String title;
	
	@Column(name = "content")
	private String content;

	 
	@Column(name = "news_url")
	private String newsUrl;//外部新闻资讯url
	
	@Column(name = "template_code")
	 private String templateCode;
	
	@Column(name = "status")
	 private String status;
	
	@Column(name = "sort")
	 private String sort;//排序
	
	
	@Column(name = "subtitle")
	 private String subtitle;//副标题
	
	@Column(name = "author")
	 private String author;//作者
	
	@Column(name = "icon")
	 private String icon;//logo
	
	@Column(name = "edit_time")
	 private Date editTime;//编辑时间

	public int getNewsType() {
		return newsType;
	}

	public void setNewsType(int newsType) {
		this.newsType = newsType;
	}

	public String getNewsImg1() {
		return newsImg1;
	}

	public void setNewsImg1(String newsImg1) {
		this.newsImg1 = newsImg1;
	}

	public String getNewsImg2() {
		return newsImg2;
	}

	public void setNewsImg2(String newsImg2) {
		this.newsImg2 = newsImg2;
	}

	public String getNewsImg3() {
		return newsImg3;
	}

	public void setNewsImg3(String newsImg3) {
		this.newsImg3 = newsImg3;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getNewsUrl() {
		return newsUrl;
	}

	public void setNewsUrl(String newsUrl) {
		this.newsUrl = newsUrl;
	}

	public String getTemplateCode() {
		return templateCode;
	}

	public void setTemplateCode(String templateCode) {
		this.templateCode = templateCode;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}

	public String getSubtitle() {
		return subtitle;
	}

	public void setSubtitle(String subtitle) {
		this.subtitle = subtitle;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public Date getEditTime() {
		return editTime;
	}

	public void setEditTime(Date editTime) {
		this.editTime = editTime;
	}

	public TycoinNews(int newsType, String newsImg1, String newsImg2, String newsImg3, String title, String content,
			String newsUrl, String templateCode, String status, String sort, String subtitle, String author,
			String icon, Date editTime) {
		super();
		this.newsType = newsType;
		this.newsImg1 = newsImg1;
		this.newsImg2 = newsImg2;
		this.newsImg3 = newsImg3;
		this.title = title;
		this.content = content;
		this.newsUrl = newsUrl;
		this.templateCode = templateCode;
		this.status = status;
		this.sort = sort;
		this.subtitle = subtitle;
		this.author = author;
		this.icon = icon;
		this.editTime = editTime;
	}

	public TycoinNews() {
		super();
	}
 
	
	
 

}
